<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="datamanager_v1.html">Data Manager API</a> . <a href="datamanager_v1.audienceMembers.html">audienceMembers</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#ingest">ingest(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Uploads a list of AudienceMember resources to the provided Destination.</p>
<p class="toc_element">
  <code><a href="#remove">remove(body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Removes a list of AudienceMember resources from the provided Destination.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="ingest">ingest(body=None, x__xgafv=None)</code>
  <pre>Uploads a list of AudienceMember resources to the provided Destination.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request to upload audience members to the provided destinations. Returns an IngestAudienceMembersResponse.
  &quot;audienceMembers&quot;: [ # Required. The list of users to send to the specified destinations. At most 10000 AudienceMember resources can be sent in a single request.
    { # The audience member to be operated on.
      &quot;consent&quot;: { # [Digital Markets Act (DMA)](//digital-markets-act.ec.europa.eu/index_en) consent settings for the user. # Optional. The consent setting for the user.
        &quot;adPersonalization&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad personalization.
        &quot;adUserData&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad user data.
      },
      &quot;destinationReferences&quot;: [ # Optional. Defines which Destination to send the audience member to.
        &quot;A String&quot;,
      ],
      &quot;mobileData&quot;: { # Mobile IDs for the audience. At least one mobile ID is required. # Data identifying the user&#x27;s mobile devices.
        &quot;mobileIds&quot;: [ # Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 `mobileIds` can be provided in a single AudienceMember.
          &quot;A String&quot;,
        ],
      },
      &quot;pairData&quot;: { # [PAIR](//support.google.com/admanager/answer/15067908) IDs for the audience. At least one PAIR ID is required. # [Publisher Advertiser Identity Reconciliation (PAIR) IDs](//support.google.com/admanager/answer/15067908).
        &quot;pairIds&quot;: [ # Required. Cleanroom-provided PII data, hashed with SHA256, and encrypted with an EC commutative cipher using publisher key for the [PAIR]((//support.google.com/admanager/answer/15067908)) user list. At most 10 `pairIds` can be provided in a single AudienceMember.
          &quot;A String&quot;,
        ],
      },
      &quot;userData&quot;: { # Data that identifies the user. At least one identifier is required. # User-provided data that identifies the user.
        &quot;userIdentifiers&quot;: [ # Required. The identifiers for the user. It&#x27;s possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 `userIdentifiers` can be provided in a single AudienceMember or Event.
          { # A single identifier for the user.
            &quot;address&quot;: { # Address information for the user. # The known components of a user&#x27;s address. Holds a grouping of identifiers that are matched all at once.
              &quot;familyName&quot;: &quot;A String&quot;, # Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;givenName&quot;: &quot;A String&quot;, # Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;postalCode&quot;: &quot;A String&quot;, # Required. The postal code of the user&#x27;s address.
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user&#x27;s address.
            },
            &quot;emailAddress&quot;: &quot;A String&quot;, # Hashed email address using SHA-256 hash function after normalization.
            &quot;phoneNumber&quot;: &quot;A String&quot;, # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
          },
        ],
      },
    },
  ],
  &quot;consent&quot;: { # [Digital Markets Act (DMA)](//digital-markets-act.ec.europa.eu/index_en) consent settings for the user. # Optional. Request-level consent to apply to all users in the request. User-level consent overrides request-level consent, and can be specified in each AudienceMember.
    &quot;adPersonalization&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad personalization.
    &quot;adUserData&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad user data.
  },
  &quot;destinations&quot;: [ # Required. The list of destinations to send the audience members to.
    { # The Google product you&#x27;re sending data to. For example, a Google Ads account.
      &quot;linkedAccount&quot;: { # Represents a specific account. # Optional. An account that the calling user&#x27;s `login_account` has access to, through an established account link. For example, a data partner&#x27;s `login_account` might have access to a client&#x27;s `linked_account`. The partner might use this field to send data from the `linked_account` to another `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;loginAccount&quot;: { # Represents a specific account. # Optional. The account used to make this API call. To add or remove data from the `operating_account`, this `login_account` must have write access to the `operating_account`. For example, a manager account of the `operating_account`, or an account with an established link to the `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;operatingAccount&quot;: { # Represents a specific account. # Required. The account to send the data to or remove the data from.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;productDestinationId&quot;: &quot;A String&quot;, # Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display &amp; Video 360 audience ID or a Google Ads conversion action ID.
      &quot;reference&quot;: &quot;A String&quot;, # Optional. ID for this `Destination` resource, unique within the request. Use to reference this `Destination` in the IngestEventsRequest and IngestAudienceMembersRequest.
    },
  ],
  &quot;encoding&quot;: &quot;A String&quot;, # Optional. Required for UserData uploads. The encoding type of the user identifiers. For hashed user identifiers, this is the encoding type of the hashed string. For encrypted hashed user identifiers, this is the encoding type of the outer encrypted string, but not necessarily the inner hashed string, meaning the inner hashed string could be encoded in a different way than the outer encrypted string. For non `UserData` uploads, this field is ignored.
  &quot;encryptionInfo&quot;: { # Encryption information for the data being ingested. # Optional. Encryption information for UserData uploads. If not set, it&#x27;s assumed that uploaded identifying information is hashed but not encrypted. For non `UserData` uploads, this field is ignored.
    &quot;gcpWrappedKeyInfo&quot;: { # Information about the Google Cloud Platform wrapped key. # Google Cloud Platform wrapped key information.
      &quot;encryptedDek&quot;: &quot;A String&quot;, # Required. The base64 encoded encrypted data encryption key.
      &quot;kekUri&quot;: &quot;A String&quot;, # Required. Google Cloud Platform [Cloud Key Management Service resource ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the format of &quot;projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}&quot;.
      &quot;keyType&quot;: &quot;A String&quot;, # Required. The type of algorithm used to encrypt the data.
      &quot;wipProvider&quot;: &quot;A String&quot;, # Required. The [Workload Identity](//cloud.google.com/iam/docs/workload-identity-federation) pool provider required to use KEK.
    },
  },
  &quot;termsOfService&quot;: { # The terms of service that the user has accepted/rejected. # Optional. The terms of service that the user has accepted/rejected.
    &quot;customerMatchTermsOfServiceStatus&quot;: &quot;A String&quot;, # Optional. The Customer Match terms of service: https://support.google.com/adspolicy/answer/6299717. This must be accepted when ingesting UserData or MobileData. This field is not required for Partner Match User list.
  },
  &quot;validateOnly&quot;: True or False, # Optional. For testing purposes. If `true`, the request is validated but not executed. Only errors are returned, not results.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response from the IngestAudienceMembersRequest.
  &quot;requestId&quot;: &quot;A String&quot;, # The auto-generated ID of the request.
}</pre>
</div>

<div class="method">
    <code class="details" id="remove">remove(body=None, x__xgafv=None)</code>
  <pre>Removes a list of AudienceMember resources from the provided Destination.

Args:
  body: object, The request body.
    The object takes the form of:

{ # Request to remove users from an audience in the provided destinations. Returns a RemoveAudienceMembersResponse.
  &quot;audienceMembers&quot;: [ # Required. The list of users to remove.
    { # The audience member to be operated on.
      &quot;consent&quot;: { # [Digital Markets Act (DMA)](//digital-markets-act.ec.europa.eu/index_en) consent settings for the user. # Optional. The consent setting for the user.
        &quot;adPersonalization&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad personalization.
        &quot;adUserData&quot;: &quot;A String&quot;, # Optional. Represents if the user consents to ad user data.
      },
      &quot;destinationReferences&quot;: [ # Optional. Defines which Destination to send the audience member to.
        &quot;A String&quot;,
      ],
      &quot;mobileData&quot;: { # Mobile IDs for the audience. At least one mobile ID is required. # Data identifying the user&#x27;s mobile devices.
        &quot;mobileIds&quot;: [ # Required. The list of mobile device IDs (advertising ID/IDFA). At most 10 `mobileIds` can be provided in a single AudienceMember.
          &quot;A String&quot;,
        ],
      },
      &quot;pairData&quot;: { # [PAIR](//support.google.com/admanager/answer/15067908) IDs for the audience. At least one PAIR ID is required. # [Publisher Advertiser Identity Reconciliation (PAIR) IDs](//support.google.com/admanager/answer/15067908).
        &quot;pairIds&quot;: [ # Required. Cleanroom-provided PII data, hashed with SHA256, and encrypted with an EC commutative cipher using publisher key for the [PAIR]((//support.google.com/admanager/answer/15067908)) user list. At most 10 `pairIds` can be provided in a single AudienceMember.
          &quot;A String&quot;,
        ],
      },
      &quot;userData&quot;: { # Data that identifies the user. At least one identifier is required. # User-provided data that identifies the user.
        &quot;userIdentifiers&quot;: [ # Required. The identifiers for the user. It&#x27;s possible to provide multiple instances of the same type of data (for example, multiple email addresses). To increase the likelihood of a match, provide as many identifiers as possible. At most 10 `userIdentifiers` can be provided in a single AudienceMember or Event.
          { # A single identifier for the user.
            &quot;address&quot;: { # Address information for the user. # The known components of a user&#x27;s address. Holds a grouping of identifiers that are matched all at once.
              &quot;familyName&quot;: &quot;A String&quot;, # Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;givenName&quot;: &quot;A String&quot;, # Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.
              &quot;postalCode&quot;: &quot;A String&quot;, # Required. The postal code of the user&#x27;s address.
              &quot;regionCode&quot;: &quot;A String&quot;, # Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user&#x27;s address.
            },
            &quot;emailAddress&quot;: &quot;A String&quot;, # Hashed email address using SHA-256 hash function after normalization.
            &quot;phoneNumber&quot;: &quot;A String&quot;, # Hashed phone number using SHA-256 hash function after normalization (E164 standard).
          },
        ],
      },
    },
  ],
  &quot;destinations&quot;: [ # Required. The list of destinations to remove the users from.
    { # The Google product you&#x27;re sending data to. For example, a Google Ads account.
      &quot;linkedAccount&quot;: { # Represents a specific account. # Optional. An account that the calling user&#x27;s `login_account` has access to, through an established account link. For example, a data partner&#x27;s `login_account` might have access to a client&#x27;s `linked_account`. The partner might use this field to send data from the `linked_account` to another `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;loginAccount&quot;: { # Represents a specific account. # Optional. The account used to make this API call. To add or remove data from the `operating_account`, this `login_account` must have write access to the `operating_account`. For example, a manager account of the `operating_account`, or an account with an established link to the `operating_account`.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;operatingAccount&quot;: { # Represents a specific account. # Required. The account to send the data to or remove the data from.
        &quot;accountId&quot;: &quot;A String&quot;, # Required. The ID of the account. For example, your Google Ads account ID.
        &quot;accountType&quot;: &quot;A String&quot;, # Optional. The type of the account. For example, `GOOGLE_ADS`. Either `account_type` or the deprecated `product` is required. If both are set, the values must match.
        &quot;product&quot;: &quot;A String&quot;, # Deprecated. Use `account_type` instead.
      },
      &quot;productDestinationId&quot;: &quot;A String&quot;, # Required. The object within the product account to ingest into. For example, a Google Ads audience ID, a Display &amp; Video 360 audience ID or a Google Ads conversion action ID.
      &quot;reference&quot;: &quot;A String&quot;, # Optional. ID for this `Destination` resource, unique within the request. Use to reference this `Destination` in the IngestEventsRequest and IngestAudienceMembersRequest.
    },
  ],
  &quot;encoding&quot;: &quot;A String&quot;, # Optional. Required for UserData uploads. The encoding type of the user identifiers. Applies to only the outer encoding for encrypted user identifiers. For non `UserData` uploads, this field is ignored.
  &quot;encryptionInfo&quot;: { # Encryption information for the data being ingested. # Optional. Encryption information for UserData uploads. If not set, it&#x27;s assumed that uploaded identifying information is hashed but not encrypted. For non `UserData` uploads, this field is ignored.
    &quot;gcpWrappedKeyInfo&quot;: { # Information about the Google Cloud Platform wrapped key. # Google Cloud Platform wrapped key information.
      &quot;encryptedDek&quot;: &quot;A String&quot;, # Required. The base64 encoded encrypted data encryption key.
      &quot;kekUri&quot;: &quot;A String&quot;, # Required. Google Cloud Platform [Cloud Key Management Service resource ID](//cloud.google.com/kms/docs/getting-resource-ids). Should be in the format of &quot;projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}&quot;.
      &quot;keyType&quot;: &quot;A String&quot;, # Required. The type of algorithm used to encrypt the data.
      &quot;wipProvider&quot;: &quot;A String&quot;, # Required. The [Workload Identity](//cloud.google.com/iam/docs/workload-identity-federation) pool provider required to use KEK.
    },
  },
  &quot;validateOnly&quot;: True or False, # Optional. For testing purposes. If `true`, the request is validated but not executed. Only errors are returned, not results.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response from the RemoveAudienceMembersRequest.
  &quot;requestId&quot;: &quot;A String&quot;, # The auto-generated ID of the request.
}</pre>
</div>

</body></html>